﻿using System.ComponentModel;
using CozeDomain.Base;
using FreeSql.DataAnnotations;

namespace CozeDomain.Entities
{
    /// <summary>
    /// 字典参数模型
    /// </summary>
    [Table(Name = "SysDic")]
    [Description("字典参数模型")]
    public class SysDicEntity : BaseEntity
    {
        /// <summary>
        /// 字典名称
        /// </summary>
        [Column(DbType = "varchar", StringLength = 30)]
        [Description("字典名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [Column(DbType = "varchar", StringLength = 30)]
        [Description("字典值")]
        public string? Val { get; set; }

        /// <summary>
        /// 所属父级
        /// </summary>
        [Column(DbType = "varchar", StringLength = 36)]
        [Description("所属父级")]
        public string? ParentId { get; set; }

        /// <summary>
        /// 字典类型
        /// </summary>
        [Column(DbType = "varchar", StringLength = 30)]
        [Description("字典类型")]
        public string? DicTypeUniqueCode { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [Column(DbType = "varchar", StringLength = 500, IsNullable = true)]
        [Description("描述")]
        public string? Description { get; set; }
         
        /// <summary>
        /// 状态
        /// </summary>
        [Column(DbType = "bit", IsNullable = false)]
        [Description("状态")]
        public bool? Status { get; set; } 
    }
}
